﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using JTicket.Common;
using JTicket.BLL;
namespace JTicket.UI
{
    public partial class JT_SystemDataBaseBack : RoleBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {

            string strTest = JTicket.Config.DBConfig.ApplicationString;
            string[] arry = strTest.Split('=');
            bool x = BLL.C_CodeNote.BackUpDB(arry[arry.Length - 1], Server.MapPath("../../App_Data/") + this.TextBox3.Text);
            if (x)
                JsMsg.Alert("备份成功！");
            else
                JsMsg.Alert("数据库正在使用中。。。！");
        }
    }
}